<template>
	<view :class='actIndex%2 == 0 ? "item":"item_right item"' @click="navPlayer">
		<image :src='img'></image>
		<view class="like_box">
			<view class="left">
				{{shopName}}
			</view>
			<view class="right">
				<image src="../static/images/img/like_live.png"></image>
				<view>{{num}}</view>
			</view>
		</view>
		<view class="address">
			<image src="../static/images/shop_area.png"></image>
			<view>{{address}}</view>
		</view>
	</view>
</template>

<script>
export default {
	name:"avatar",
	props:{
		img: '',
		num: {
			default:'0'
		},
		actIndex:'',
		pid: '',
		circleName:'',
		shopName: '',
		address: '',
		cateId:''
	},
	data() {
		return {
			
		};
	},
	methods:{
		navPlayer(){
			console.log(this)
			uni.navigateTo({
				url:'../../circlePlayer/circlePlayer?id='+this.pid+'&index='+this.actIndex + '&name='+this.circleName+'&cateId='+this.cateId,
				fail: (err) => {
					console.log(err)
				}
			})
		}
	}
}
</script>

	
<style lang="less">


</style>
